package cn.iocoder.yudao.module.system.controller.admin.mini.goodInfo.goods.controller.admin.goods.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 小程序-商品分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class GoodsPageReqVO extends PageParam {

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "商品名称", example = "王五")
    private String name;

    @Schema(description = "图片")
    private List<String> img;

    @Schema(description = "商品分类", example = "2")
    private String type;

    @Schema(description = "销售数量")
    private Integer saleNum;

    @Schema(description = "运费模版id", example = "14819")
    private Integer postalId;

    @Schema(description = "是否包邮(1是2否)")
    private Integer postage;

    @Schema(description = "状态1上架2下架", example = "2")
    private Integer status;

    @Schema(description = "商品描述")
    private String content;

    @Schema(description = "图文详情")
    private String imgInfo;

    @Schema(description = "规格")
    private List<GoodSpecif> specif;

    private Integer supplierId;
    //编号
    private String code;

}
